#ifndef _OD_SIP_XML_H_
#define _OD_SIP_XML_H_


#ifdef __cplusplus
    extern "C" {
#endif

#include "eXosip2/eXosip2.h"
#include "od_sip_comn.h"

#define CONTENT_XML             "application/command+xml"
#define MANSCDP_XML             "Application/MANSCDP+xml"  /*Networked System Control Description Protocol*/


/**
* A.3.1 Device control_command response
*/
int od_sip_xml_dev_ctl_cmd_response(od_sip_ctx *ctx, 
                                       eXosip_event_t *event,
                                       char *response_str, int respone_bufsize,
                                       char *content_type, int content_bufsize);

int od_sip_build_heartbeat_xml(od_sip_ctx *ctx, 
                                char *response_str, 
                                int respone_bufsize,
                                void *response);



/*GB28181 Query*/
int od_sip_xml_query_process(od_sip_ctx *ctx, 
                               eXosip_event_t *event,
                               char *response_str, int respone_bufsize,
                               char *content_type, int content_bufsize);

/*GB28181 Control*/
int od_sip_xml_control_process(od_sip_ctx *ctx, 
                                 eXosip_event_t *event,
                                 char *response_str, int respone_bufsize,
                                 char *content_type, int content_bufsize);


#ifdef __cplusplus
    }
#endif

#endif

/*_*/

